/* 
 * File:   Gravity.h
 * Author: RedEyedKiller
 *
 * Created on 1 Μάρτιος 2011, 3:12 πμ
 */

#ifndef GRAVITY_H
#define	GRAVITY_H

#include "Force.h"
#include "../Vector2.h"


namespace physicsSystem
{

namespace forces
{

class Gravity : public TimedForce
{
public:
    Gravity(const Math::Vector2F& gravity);
    Gravity(float magnitude,int direction);

    virtual ~Gravity()
    {
    }

    virtual void Affect(PhysicalObject* object);
    virtual void Prepare(float seconds);
private:
    /**
     * The general power of gravity.
     */
    Math::Vector2F gravity;
};

};
};

#endif	/* GRAVITY_H */

